package com.patterns.java.mediator;

import java.util.List;

/**
 * 聊天参与者
 *      发送消息源端
 * @author 三多
 * @Time 2021/10/13
 */
public class User {
    private String name;
    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void sendMessage(String message){
        ChatRoom.showMessage(this,message);
    }

}
